<?php echo '<?xml version="1.0" encoding="utf-8" ?>';
echo '<queue>';
echo '    <apiKey>ceea443cad2cbd028eacf1f331339f00</apiKey>';
echo '    <targetType>html</targetType>';
echo '    <targetMethod>convert-to-html</targetMethod>';
echo '    <testMode>true</testMode>';
echo '    <file>';
echo '        <fileName>'.$file->filename.'</fileName>';
echo "        <fileData>\r\n\r\n" . base64_encode(file_get_contents($file->tmp_name)) . "\r\n</fileData>";
echo '    </file>';?>
<?php echo '</queue>';?>